package top.chengdongqing.mishop.common.pageable

import org.springframework.data.domain.PageRequest

data class PageRequest1(
    val pageNumber: Int = 1,
    val pageSize: Int = 10
) {
    fun get(): PageRequest {
        return PageRequest.of(pageNumber - 1, pageSize)
    }
}
